package com.demo.exception;

/**
 * @author wangfengchen
 */
public class BizException extends RuntimeException {

    private int code = 500;
    private String message;


    public BizException(int code) {
        this.code = code;
    }

    public BizException(String message) {
        this.message = message;
    }

    public BizException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
